﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Admin.Page_AdvTools
{
    public partial class RobotsEditor : Evan.WebUI.ManagerPage
    {
        protected string FileContent = "";
        protected string FilePath = "/robots.txt";  
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //仅仅只有超级管理员拥有此功能
                if (!Evan.Member.Administrator.IsSuperAdmin())
                {
                    VerifyRoles();
                }
                FileContent = Evan.Common.DirFile.ReadFile(FilePath);
            }
        }
    }
}